<?xml version="1.0" encoding="utf-8"?>
<tasks>
  <task id="SharePointPortal" name="Create Sharepoint Portal" plugin="Microsoft.ProjectCreationWizard.Portal" completionMessage="Project site created.">
    <taskXml>
      <Portal>
        <site template="V-Modell XT Template" language="1031" />
        <documentLibraries>
          <% @sharepoint_libraries.each do |sl| %>
              <documentLibrary name="<%= sl %>"  description="<%= sl %>"/>
          <% end %>
        </documentLibraries>
				<folders>
				  <% @sharepoint_folders.each do |sf| %>
            <folder documentLibrary="<%= sf[:library] %>" name="<%= sf[:folder] %>" />
          <% end %>
				</folders>
        <files>
					<% @sharepoint_files.each do |sf| %>
					  <file target="<%= sf[:target] %>" documentLibrary="<%= sf[:library] %>" source="<%= sf[:source] %>" />
					<% end %>
        </files>
      </Portal>
    </taskXml>
  </task>
</tasks>